<template>
    <a-popconfirm
      title="你确定删除这个任务?"
      ok-text="Yes"
      cancel-text="No"
      @confirm="confirm"
      @cancel="cancel"
    >
      <a href="#">删除</a>
    </a-popconfirm>
  </template>
  <script>
  export default {
    methods: {
      confirm(e) {
        console.log(e);
        this.$message.success('删除');
      },
      cancel(e) {
        console.log(e);
        this.$message.info('取消');
      },
    },
  };
  </script>
  